Skip to content

One clipboard flag: -c/--clipboard, the clipboard instead of the terminal - #71

Merged
pscheid92 merged 1 commit into
mainfrom
clipboard-flag
Nov 27, 2026
Merged

pscheid92 merged 1 commit into
mainfrom
clipboard-flag

Conversation

@pscheid92

Copy link
Copy Markdown
Contributor

--from-clipboard, --to-clipboard and --copy-link each named a direction,
and next to each other they never said what moved. -c/--clipboard now
means one thing on every command: what you would type comes from the
clipboard, what you would read goes there.

  • share -c: at a terminal with no files and no --text, the clipboard's
    text is shared instead of asked for; the link goes on the clipboard and
    is not printed (the owner link is). With --code the code is printed.
  • open -c: the link from the clipboard instead of the prompt, the text
    onto it. Files are saved as usual; --json still prints.
  • receive -c: the text, or with --link the link, onto the
    clipboard. The code is never taken from it.
  • status, send, delete -c: the link from the clipboard.

Files, -t, a link argument or a pipe still win, and an empty pipe is an
error, never a reason to share the clipboard. A clipboard without a link
is refused without showing what it holds. The terminal tests run the
two-computer flow, share -c --code and receive -c, against a
clipboard in a file.

…inal

--from-clipboard, --to-clipboard and --copy-link each named a direction,
and next to each other they never said what moved. -c/--clipboard now
means one thing on every command: what you would type comes from the
clipboard, what you would read goes there.

- share -c: at a terminal with no files and no --text, the clipboard's
  text is shared instead of asked for; the link goes on the clipboard and
  is not printed (the owner link is). With --code the code is printed.
- open -c: the link from the clipboard instead of the prompt, the text
  onto it. Files are saved as usual; --json still prints.
- receive <code> -c: the text, or with --link the link, onto the
  clipboard. The code is never taken from it.
- status, send, delete -c: the link from the clipboard.

Files, -t, a link argument or a pipe still win, and an empty pipe is an
error, never a reason to share the clipboard. A clipboard without a link
is refused without showing what it holds. The terminal tests run the
two-computer flow, share -c --code and receive <code> -c, against a
clipboard in a file.
@pscheid92
pscheid92 merged commit f268f32 into main Nov 27, 2026
13 checks passed
@pscheid92
pscheid92 deleted the clipboard-flag branch November 27, 2026 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant